import {Routes,RouterModule} from '@angular/router';
import {NgModule} from '@angular/core';
import { AppComponent } from './app.component';
import { SignComponent } from './sign/sign.component';
import { Tip2Component } from './tip2/tip2.component';
import { Tip3Component } from './tip3/tip3.component';
import { Tip4Component } from './tip4/tip4.component';

//路由配置

@NgModule({
    imports: [
        RouterModule.forRoot([
            {path: '',  component: AppComponent},
            { path: 'sign', component: SignComponent },
            { path: 'tip2', component: Tip2Component },
            { path: 'tip3', component: Tip3Component },
            { path: 'tip4', component: Tip4Component }
        ])
    ],
    exports: [RouterModule]
})
export class AppRoutingModule {}
